<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>系统日志操作</title>
<%@include file="../../common/tagInclude.jsp" %>
<%@include file="../../common/headerInclude.jsp" %>
<script type="text/javascript">
	$(function() {
		$("#jvForm").validate();
	});
	function del(id){
		if(!confirm("确定要删除此导航?")){
			return ;
		}
		window.location = '${basePath}super/sysSetUp/sysLog-del.do?naId='+id;
	}
</script>
<script type="text/javascript" src="${basePath}res/common/js/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
<div class="body-box">
	<div class="rhead">
		<div class="rpos">当前位置: 首页  - 系统 - 导航条列表 </div>
		<!-- 
		<form class="ropt">
			<input type="submit" value="添加" onclick="this.form.action='${basePath}super/sysSetUp/sysLog-show.do';">
		</form>
		 -->
		<div class="clear"></div>
	</div>
	<form action="${basePath}super/sysSetUp/sysLog-list.do" method="get" style="padding-top:5px;">
		<div>
			操作&nbsp;<select name="actionId" id="actionId">
					<option value="">请选择</option>
					<option value="1" <c:if test="${query.actionId == 1}">selected</c:if>>新增</option>
					<option value="2" <c:if test="${query.actionId == 2}">selected</c:if>>删除</option>
					<option value="3" <c:if test="${query.actionId == 3}">selected</c:if>>修改</option>
					<option value="5" <c:if test="${query.actionId == 5}">selected</c:if>>登入</option>
					<option value="6" <c:if test="${query.actionId == 6}">selected</c:if>>登出</option>
				</select>
			&nbsp;&nbsp;
			开始时间&nbsp;<input type="text" maxlength="100" name="startTime" id="startTime" class="required" size="25" value="${query.startTime}"
					onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="Wdate" readonly="readonly">&nbsp;&nbsp;
			结束时间&nbsp;<input type="text" maxlength="100" name="endTime" id="endTime" class="required" size="25" value="${query.endTime}"
					onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="Wdate" readonly="readonly">&nbsp;&nbsp;
			<input type="submit" value="查询"><br/><br/>
		</div>
		<table class="pn-ltable" width="100%" cellspacing="1" cellpadding="0" border="0">
			<thead class="pn-lthead">
			<tr>
				<th width="10%">用户</th>
				<th width="5%">操作</th>
				<th width="20%">栏目</th>
				<th>描述</th>
				<th width="15%">操作时间</th>
			</tr>
			</thead>
			<tbody class="pn-ltbody">
			<c:forEach items="${logList}" var="log" varStatus="status">
			<tr>
				<td align="center">${log.userInfo.realName}</td>
				<td align="center">${log.logActionName}</td>
				<td align="center">${log.navigateInfo.name}</td>
				<td>${log.logDesc}</td>
				<td align="center">${fmtString:substring(log.logTime,19)}</td>
			</tr>
			</c:forEach>
			</tbody>
		</table>
		<c:set var="pageURL" value="${basePath}super/sysSetUp/sysLog-list.do?userId=${query.userId}&naviId=${query.naviId}&startTime=${fmtString:encoder(query.startTime)}&endTime=${fmtString:encoder(query.endTime)}&"/>
		<%@include file="../../common/pages.jsp"%>
	</form>
</div>
</body>
</html>